import {lazy} from "react"

const routes =[
    {
        path:"/",
        to:"/home/shouye"
    },
    {
        path:"/home",
        element:lazy(()=>import ("../page/Home")),
        children:[
            {
                path:"/home/shouye",
                element:lazy(()=>import ("../page/Shouye"))
            },
            {
                path:"/home/hot",
                element:lazy(()=>import ("../page/Hot"))
            },
            {
                pah:"/home/main",
                element:lazy(()=>import ("../page/Main"))
            }
        ]
    },
    {
        path:"/login",
        element:lazy(()=>import ("../page/Login"))
    }
]

export default routes